package com.icangya.domain;


import javax.persistence.*;
import java.sql.Timestamp;

@Entity
@Table(name = "fb_comment")
public class FbComment {

    //
    private Long id;
    //评论内容
    private String content;
    //创建时间
    private Timestamp createTime ;
    //用户的名称
    private String userName;
    //用户的头像
    private String userHeadimg;
    //用户的openid
    private String userOpenid;
    //说说的id
    private Long  moodId;



    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id")
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Basic
    @Column(name = "content")
    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }
    @Basic
    @Column(name = "create_time")
    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }
    @Basic
    @Column(name = "user_name")
    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }
    @Basic
    @Column(name = "user_headimg")
    public String getUserHeadimg() {
        return userHeadimg;
    }

    public void setUserHeadimg(String userHeadimg) {
        this.userHeadimg = userHeadimg;
    }
    @Basic
    @Column(name = "user_openid")
    public String getUserOpenid() {
        return userOpenid;
    }

    public void setUserOpenid(String userOpenid) {
        this.userOpenid = userOpenid;
    }
    @Basic
    @Column(name = "mood_id")
    public Long getMoodId() {
        return moodId;
    }

    public void setMoodId(Long moodId) {
        this.moodId = moodId;
    }

    @Override
    public String toString() {
        return "FbComment{" +
                "id=" + id +
                ", content='" + content + '\'' +
                ", createTime=" + createTime +
                ", userName='" + userName + '\'' +
                ", userHeadimg='" + userHeadimg + '\'' +
                ", userOpenid='" + userOpenid + '\'' +
                ", moodId=" + moodId +
                '}';
    }

    public FbComment() {
    }

    public FbComment(Long id, String content, Timestamp createTime, String userName, String userHeadimg, String userOpenid, Long moodId) {
        this.id = id;
        this.content = content;
        this.createTime = createTime;
        this.userName = userName;
        this.userHeadimg = userHeadimg;
        this.userOpenid = userOpenid;
        this.moodId = moodId;
    }
}
